﻿using UnityEngine;
using System.Collections;

public class BossWarningSceneManager : Scene {
	public UILabel bossLevelLabel;
	public UILabel bossNameLabel;

	public GameObject[] bossModel;

	public override void AwakeScene ()
	{
		base.AwakeScene ();

        //BGM = "BGM_Raidfx";
        SoundController.PlayBGM("BGM_Raidfx", false);
	}

	// Use this for initialization
	public override void StartScene () {
		bossLevelLabel.text = string.Format("Lv {0}", UserData.Instance.researchResultData.discoverBossLv);
		bossNameLabel.text = TextController.GetStringWithId(string.Format("bossName{0}", UserData.Instance.raidBossId));

		bossModel[UserData.Instance.raidBossId-10001].SetActive(true);

		Invoke("MoveToBattleStandByScene", 3.5f);
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void MoveToBattleStandByScene()
	{
		StandbyScene.startMode = BattleStartMode.RaidBossFromResearch;
        SceneController.LoadLevel("Lobby_20vs");
	}
}
